<template>
  <div>
    <slot v-if="show"></slot>
    <div class="yun-empty" v-else>
      暂无数据
    </div>
  </div>
</template>
<script>
export default {
  name: 'EmptyContent',
  props: {
    show: {
      required: true,
      type: Boolean
    }
  }
}
</script>

<style>
.yun-empty {
  height: 600px !important;
  line-height: 600px;
  text-align: center;
  color: #909399;
}
</style>
